
public class Demo {
	public static void main(String[] args) {

		ValueFilter valueFilter =new ValueFilter(10,3);
		System.out.println(valueFilter.save(1));
		System.out.println(valueFilter.save(1));
		System.out.println(valueFilter.save(1));
		System.out.println(valueFilter.save(2));
		System.out.println(valueFilter.save(2));
		System.out.println(valueFilter.save(1));
		System.out.println(valueFilter.save(2));
		System.out.println(valueFilter.save(3));
		System.out.println(valueFilter.save(1));
		System.out.println(valueFilter.save(3));
		System.out.println(valueFilter.save(1));
		
	}
}
